import { COMMENT_LIST_DATA } from './actionTypes'
import axios from 'axios'

export const getListData = () => async (dispatch) => {
    let res = await axios({
        method: 'get',
        url: './json/comments.json'
    })
    // console.log('res', res)
    dispatch({
        type: COMMENT_LIST_DATA,
        obj: res.data
    })
}